<?php
return array(
    'cache' => array(
        'default_provider' => 'file',
        'file' => '\\Monkey\\Cache\\File',
        'memcache' => '\\Monkey\\Cache\\Memcache',
        'apc' => '\\Monkey\\Cache\\Apc',
    ),
    'cache_file' => array(
        'expire' => 3600,
        'dir' => '/fileCache',
        'filename' => 'data',
        'filesize' => '15M',
        'check' => false,
    ),
    'cache_memcache' => array(
        'expire' => 3600,
        'host' => 'localhost',
        'port' => 11211,
        'persistent' => '',
        'compressed' => false,
    ),
    'cache_apc' => array(
        'expire' => 3600,
    ),
    'database' => array(
        'default_provider' => 'default',
        'default' => '\\Monkey\\Database\\Database',
    ),
    'database_default' => array(
        'default_connection' => 'master',
        'pool' => array(
            'master' => 1,
        ),
        'master' => array(
            'protocol' => 'mysql',
            'dsn' => 'mysql:host=localhost;port=3306;dbname=macaca',
            'host' => 'localhost',
            'port' => '3306',
            'dbname' => 'macaca',
            'unix_socket' => '',
            'charset' => 'utf8',
            'collation' => '',
            'username' => 'root',
            'password' => '123',
            'prefix' => 'mcc_',
            'transactions' => true,
            'options' => array(),
        ),
    ),
    'errorReporting' => array(
        'default_provider' => 'default',
        'default' => '\\Monkey\\ErrorReporting\\ErrorReporting',
    ),
    'errorReporting_default' => array(
        'errorTemplate' => '',
    ),
    'logger' => array(
        'default_provider' => 'default',
        'default' => '\\Monkey\\Logger\\Logger',
    ),
    'logger_default' => array(
        'error_enable' => true,
        'error_dir' => '/logs/error',
        'sql_enable' => true,
        'sql_dir' => '/logs/sql',
    ),
    'permission' => array(
        'default_provider' => 'default',
        'default' => '\\Monkey\\Permission\\Permission',
    ),
    'Permission_default' => array(),
    'router' => array(
        'default_provider' => 'default',
        'default' => '\\Monkey\\Router\\Router',
    ),
    'router_default' => array(
        'map_file' => '/data/router.map.php',
        'pattern_option' => array(
            '{i}' => '([0-9]|[1-9]\\d+)',
            '{s}' => '([^\\/]+)',
            '{year}' => '([1-2]\\d{3})',
            '{month}' => '(1[0,1,2]|[1-9])',
            '{day}' => '([1-9]|[1,2][0-9]|3[0,1])',
            '{name}' => '(\\w+)',
            '{zh|en}' => '(zh|en)',
            '{json}' => '(\\.json)',
        ),
        'router_class_auto_prefix' => true,
        'search_mode' => 'rewrite',
        'search_get' => 'r',
    ),
    'session' => array(
        'default_provider' => 'file',
        'file' => '\\Monkey\\Session\\File',
        'memcache' => '\\Monkey\\Session\\Memcache',
        'apc' => '\\Monkey\\Session\\Apc',
    ),
    'session_file' => array(
        'prefix' => 'Monkey',
        'expire' => 3600,
        'dir' => '/sessionCache',
        'filename' => 'session',
        'filesize' => '15M',
        'check' => false,
    ),
    'session_memcache' => array(
        'prefix' => 'Monkey',
        'expire' => 3600,
        'host' => 'localhost',
        'port' => 11211,
        'persistent' => '',
        'compressed' => false,
    ),
    'session_apc' => array(
        'prefix' => 'Monkey',
        'expire' => 3600,
    ),
    'shutdown' => array(
        'default_provider' => 'default',
        'default' => '\\Monkey\\Shutdown\\Shutdown',
    ),
    'shutdown_default' => array(),
    'view' => array(
        'default_provider' => 'default',
        'default' => '\\Monkey\\View\\View',
    ),
    'view_default' => array(
        'charset' => 'UTF-8',
        'template_root' => '/template',
        'compiled_root' => '/template_compiled',
        'page_style_name' => 'def',
        'def_link' => '<a href="{urlPre}{number}">{text}</a>',
        'def_link_ajax' => '<a href="javascript:ajaxActionName(\'{urlPre}{number}\')">{text}</a>',
        'def_span_current' => '<span class="current">{number}</span>',
        'def_span_total' => '<span >/共{number}页</span>',
        'def_input_jump' => '转到<input type="text" class="jump_style" size="2" title="输入页码，按回车快速跳转" value="1" onkeydown="if(event.keyCode==13) {window.location=\'{urlPre}\'+this.value; doane(event);}" />',
        'def_text_first' => '首页',
        'def_text_pre' => '上一页',
        'def_text_next' => '下一页',
        'def_text_last' => '尾页',
        'def_layout' => 'pre-current-next',
        'theme_url_base' => '',
        'theme_dir' => '/defSkin',
    ),
    'siteset' => array(
        'site_enable' => true,
        'site_domain' => 'localhost',
        'site_map_enable' => false,
        'site_template_style' => 'default',
        'site_name' => '我的网站',
        'site_title' => 'MonkeyPHP Demo网站',
        'site_key' => 'Macaca, MonkeyPHP, Demo',
        'site_description' => 'Macaca 是轻量级企业网站管理系统',
        'site_icp' => '',
        'company_address' => '',
        'company_service_call' => '',
        'company_fax' => '',
        'company_service_qq' => '',
        'company_service_email' => '',
        'products_list_limit' => 10,
        'article_list_limit' => 10,
        'guestbook_list_limit' => 10,
        'thumbnail_width' => 135,
        'thumbnail_height' => 135,
    ),
);